//
// Created by jsjxsy on 2022/9/14.
//

#ifndef CPLUSPLUS_DEMO_PROJECT_EMPLOYEE_MANAGEMENT_SYSTEM_WORKERMANAGER_H_
#define CPLUSPLUS_DEMO_PROJECT_EMPLOYEE_MANAGEMENT_SYSTEM_WORKERMANAGER_H_
#include <iostream>
#include <Worker.h>
using namespace std;
class WorkerManager {
 public:
  WorkerManager();
  void Show_Menu();
  void Exit_System();
  void Add_Worker();
  void Save_ToFile();
  void Show_Worker();
  void Delete_Worker();
  void Modify_Worker();
  void Find_Worker();
  void Sort_ByNumber();
  void clear();
  int Get_Number();
  int Is_Exist(int id);
  //初始化员工
  void Init_Emp();
  ~WorkerManager();
  int m_number;
  Worker **m_workers;
  //标志文件是否为空
  bool m_FileIsEmpty;
 private:
  void Find_ByNo();
  void Find_ByName();
};

#endif //CPLUSPLUS_DEMO_PROJECT_EMPLOYEE_MANAGEMENT_SYSTEM_WORKERMANAGER_H_
